package com.multitrack.datatype;

import java.io.Serializable;

public class CurrLocation implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7232359434580019323L;
	
	private Identity member;
	private GPS gps;
	
	public CurrLocation() {
		
	}
	
	public CurrLocation(Identity member, GPS gps) {
		this.member = member;
		this.gps = gps;
	}

	public Identity getMember() {
		return member;
	}

	public void setMember(Identity member) {
		this.member = member;
	}
	
	public String getId(){
		return member.getId();
	}
	
	public String getName(){
		return member.getName();
	}

	public GPS getGps() {
		return gps;
	}

	public void setGps(GPS gps) {
		this.gps = gps;
	}
	
	public long getTime() {
		return this.gps.getTime();
	}
	
	public double getLat() {
		return gps.getLat();
	}
	
	public double getLon() {
		return gps.getLon();
	}
	
	public double getAlt() {
		return gps.getAlt();
	}

}
